<div class="infoBlock">
<div class="infoBlockHeading"><span class="t">Form Items</span></div>
<div class="infoBlockContent">

<div class="infoBlockItem">
<form name="itemform" method="post">
<input type="hidden" name="action" value="update">
<input type="hidden" name="id" value="{$CONTENT.item.id}">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td width="100" align="right" valign="top"><label class="fb">Subject</label>: </td>
    <td>{$CONTENT.item.subject class="inputText3" require="true"}</td>
    <td></td>
  </tr>
  <tr>
    <td align="right" valign="top"><label class="fb">Content</label>: </td>
    <td>{$CONTENT.item.content|text|nl2br}</td>
    <td></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="5" class="listBox">
  <tr class="listBoxHeading">
    <td>{pp_inputcheckboxall name="sla" values=""}</td>
    <td>Name</td>
    <td>Type</td>
    <td>Require</td>
    <td>Sort Order</td>
    <td>Status</td>
    <td>Action</td>
  </tr>
{section name=item loop=$CONTENT.items}
  <tr>
    <td>{pp_inputcheckbox value=$CONTENT.items[item].id}</td>
    <td>{$CONTENT.items[item].name}</td>
    <td>{$CONTENT.items[item].type}</td>
    <td>{$CONTENT.items[item].require}</td>
    <td>{$CONTENT.items[item].sort_order}</td>
    <td>{$CONTENT.items[item].status}</td>
    <td><a href="{$CONTEXT.ADMINURL}form_item?op=edit&id={$CONTENT.items[item].id}">Edit</a>&nbsp;<a href="javascript:void(0);" onclick="PJS.list.delchkgo('{$CONTEXT.ADMINURL}form_item?op=dodelete&id={$CONTENT.items[item].id}');">Delete</a></td>
  </tr>
{sectionelse}
  <tr>
    <td colspan="8"></td>
  </tr>
{/section}
  <tr>
    <td colspan="8"><div id="sfd" class="part">{pp_inputoptions name="field" options="[-----Actions-----=|Delete=delete|Status open=statusopen|Status close=statusclose]" onchange="PJS.list.doActionField('setfield', this);"}</div></td>
  </tr>
</table>

{if $CONTENT.navigation.show == 1}
<div class="navigation">
<span class="count">{$CONTENT.navigation.count}</span>
<span class="links"><ul>{$CONTENT.navigation.links}</ul></span>
</div>
{/if}
</form>

<h3>Add Item</h3>
<form name="formitemform" method="post">
<input type="hidden" name="action" value="addformitem">
<input type="hidden" name="fid" value="{$CONTENT.item.id}">
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="editBox">
  <tr>
    <td width="100" align="right"><label class="fb">Name</label>: </td>
    <td>{pp_inputtext name="field_name" value="" class="inputText2" require="true"}</td>
  </tr>
  <tr>
    <td align="right"><label class="fb">Type</label>: </td>
    <td>{pp_inputoptions name="field_type" options="[Text=text|Textarea=textarea|Email=email|Password=password|File=file|Image=image|Select=select|Checkbox=checkbox|Radio=radio]"}</td>
  </tr>
  <tr>
    <td align="right"><label class="fb">Value</label>: </td>
    <td>{pp_inputtextarea name="field_value" value="" cols="40" rows="4"}</td>
  </tr>
  <tr>
    <td align="right"><label class="fb">Description</label>: </td>
    <td>{pp_inputtextarea name="field_description" value="" cols="40" rows="4"}</td>
  </tr>
  <tr>
    <td align="right"><label class="fb">Require </label>: </td>
    <td>{pp_inputcheckbox name="field_require" value="1" output="Require"}</td>
  </tr>
  <tr>
    <td align="right"><label class="fb">Sort Order</label>: </td>
    <td>{pp_inputtext name="field_sort_order" value=""}</td>
  </tr>
  <tr>
    <td align="right" valign="top"></td>
    <td><input type="submit" name="submitbtn" value="Submit"></td>
  </tr>
</table>
</form>
</div>

</div>
</div>